<?php
                            if(!empty($topcredit)):
                                foreach ($topcredit as $topcredit):?>
                                    <div class="1sdf">
                                        <strong class="user_credit" style="color:#1565d2;">
                                            <?php echo ' '.$topcredit->username;?>
                                            <span style="color:#001100;font-weight:normal;font-size:13px;"> 
                                                (<?php echo date("d m Y - h:i:s A",$topcredit->created);?>)
                                            </span>
                                        </strong> 
                                        
                                        completed 
                                        <?php 
                                            if($topcredit->type){
                                                echo '<a style="color:#0ebb06;" href="'.base_url().'offer/detail/'.$topcredit->idoff.'" target="_blank"> '.$topcredit->name,'</a>';
                                            }else{
                                                echo '<a style="color:#0ebb06;" href="'.base_url().'offer/netwall"> '.$topcredit->name,'</a>';
                                            }
                                            
                                        ?>
                                       
                                        
                                        and earned <span style="color:red;" id="tien"><?php echo $topcredit->point;?></span><span class="point_iconn"></span>
                                    </div>        
                        
<?php endforeach;endif;?>